/**
 * @author：anlzou
 * @Date：Created in11:37 2021/3/30
 * @Github：https://github.com/anlzou
 * @Description：
 */
package com.anlzou.object;

import java.util.logging.Logger;

public class ObjectBorn {
    private static final Logger logger = Logger.getLogger(String.valueOf(ObjectBorn.class));

    // 1.静态变量初始化
    static String staticWord = "hello";

    // 2.静态代码块
    static  {
        logger.info("staticWord = "+staticWord);
    }

    public ObjectBorn(){
        logger.info("father construct method invoke...");
    }

    public static class Son extends ObjectBorn{
        static  {
            logger.info("son staticWord init in static");
        }
        public Son(){
            logger.info("son construct method invoke...");
        }
    }

//    public static void main(String[] args) {
//        Son son = new Son();
//    }
}
